import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Jkda from '../pages/jkda.vue' //健康档案
import Jzfx from '../pages/jzfx/index.vue' //就诊分析
import Mzjl from '../pages/mzjl/index.vue' //门诊记录
import mzjlDetail from '../pages/mzjl/mzjlDetail.vue' //门诊记录详情页
import Jcbg from '../pages/jcbg/index.vue' //检查报告
import jcDetail from '../pages/jcbg/jcDetail' //检查报告详情
import jcbgCompare from '../pages/jcbg/compareList' //检查报告痛上期比较
import Jybg from '../pages/jybg/index.vue' //检验报告
import jyDetail from '../pages/jybg/jyDetail.vue' //检验报告详情
import jyCharts from '../pages/jybg/jybgCharts.vue' //检验报告解读
import Zyxx from '../pages/zyxx/index.vue' //住院信息
import zyxxDetail from '../pages/zyxx/detail.vue' //住院信息详情页
import Yyzz from '../pages/yyzz/index.vue' //预约转诊首页
import yyzzDetail from '../pages/yyzz/detail.vue' //预约转诊详情
import Mjzcf from '../pages/mjzcf/index.vue' //门急诊处方首页
import mjzcfDetail from '../pages/mjzcf/detail.vue' //门急诊处方详情页
import jzfxDetail from '../pages/jzfx/detail.vue' //就诊分析详情页
import Settlement from '../pages/zyxx/settlement.vue' //出院结算
Vue.use(Router)

export default new Router({
    routes: [
        {
            //健康档案
            path: '/',
            name: 'Jkda',
            component: Jkda,
            meta: {
                title: '健康档案'
            }
        },
        // {
        //     path:'/',
        //     name:'jyCharts',
        //     component:jyCharts
        // },
        {
            //就诊分析
            path: '/jzfx',
            name: 'Jzfx',
            component: Jzfx,
            meta: {
                title: '就诊分析'
            }
        },
        {
            //就诊分析详情页
            path: '/jzfx/detail',
            name: 'jzfxDetail',
            component: jzfxDetail,
            meta: {
                title: '就诊分析'
            }
        },
        {
            //门诊记录
            path: '/mzjl',
            name: 'Mzjl',
            component: Mzjl,
            meta: {
                title: '门急诊信息'
            }
        },
        {
            //门诊记录详情页
            path: '/mzjl/detail',
            name: 'mzjlDetail',
            component: mzjlDetail,
            meta: {
                title: '门急诊信息'
            }
        },
        {
            //检查报告
            path: '/jcbg',
            name: 'Jcbg',
            component: Jcbg,
            meta: {
                title: '检查报告'
            }
        },
        {
            //检查报告详情
            path: '/jcbg/detail',
            name: 'jcDetail',
            component: jcDetail,
            meta: {
                title: '检查报告'
            }
        },
        {
            //检查报告痛上期比较
            path: '/jcbg/compare',
            name: 'jcbgCompare',
            component: jcbgCompare,
            meta: {
                title: '检查报告'
            }
        },
        {
            //检验报告
            path: '/jybg',
            name: 'Jybg',
            component: Jybg,
            meta: {
                title: '检验报告'
            }
        },
        {
            //检验报告详情
            path: '/jybg/detail',
            name: 'jyDetail',
            component: jyDetail,
            meta: {
                title: '检验报告'
            }
        },
        {
            //检验报告解读
            path: '/jybg/detail/charts',
            name: 'jyCharts',
            component: jyCharts,
            meta: {
                title: '检验报告'
            }
        },
        {
            //住院信息
            path: '/zyxx',
            name: 'Zyxx',
            component: Zyxx,
            meta: {
                title: '住院信息'
            }
        },
        {
            //住院信息详情
            path: '/zyxx/detail',
            name: 'zyxxDetail',
            component: zyxxDetail,
            meta: {
                title: '住院信息'
            }
        },
        {
            path: '/zyxx/settlement',
            name: 'Settlement',
            component: Settlement,
            meta: {
                title: '住院信息'
            }
        },
        {
            //预约转诊
            path: '/yyzz',
            name: 'Yyzz',
            component: Yyzz,
            meta: {
                title: '预约转诊'
            }
        },
        {
            //预约转诊详情
            path: '/yyzz/detail',
            name: 'yyzzDetail',
            component: yyzzDetail,
            meta: {
                title: '预约转诊'
            }
        },
        {
            //门急诊处方首页
            path: '/mjzcf',
            name: 'Mjzcf',
            component: Mjzcf,
            meta: {
                title: '门急诊处方'
            }
        },
        {
            //门急诊处方详情页
            path: '/mjzcf/detail',
            name: 'mjzcfDetail',
            component: mjzcfDetail,
            meta: {
                title: '门急诊处方'
            }
        }
    ]
})